package cn.jiyun.pojo.function;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ToString
public class Orders {
    private Integer id;
    private String orderNumber;
    private Integer orderTypes;
    private Integer userId;
    private String passengerPhone;
    private Integer driverId;
    private String startCity;
    private String pathwayoneCity;
    private String pathwaytwoCity;
    private String destinationCity;
    private String practicalCity;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime receivingTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime appointmentTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime arrivalTime;
    private Integer mileage;
    private Integer timeConsuming;
    private Integer ifDebarkation;
    private BigDecimal paymentAmount;
    private Integer orderStatus;
    private Integer paymentStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentTime;


    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String userPhone;
    @TableField(exist = false)
    private String driverName;
    @TableField(exist = false)
    private String driverPhone;
    @TableField(exist = false)
    private String CarName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date1;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date2;
}
